<? Phpr_View::beginBlock("view") ?>
	<ul class="breadcrumbs">
		<li><a href="<?= url('/system/settings') ?>">Settings</a></li>
		<li><?= $this->app_page_title ?></li>
	</ul>
	
	<?= flash() ?>

	<? if (!isset($fatalError)): ?>
		<div class="form300">
			<?= Phpr_Form::openTag() ?>
			
				<div class="scoreboardReport">
					<ul>
						<li class="last">
							<h3>Last used order number</h3>
							<p>
								<?= $last_used_number ?>
							</p>
						</li>
					</ul>
				</div>

				<div class="clear"></div>

				<div class="form">
					<div class="formFlash"></div>

					<div class="form_page">
						<ul class="formElements">
							<li class="field text full">
								<label for="new_number">
									New order number
									<span class="comment">New order number should be more than the last used number (<?= $last_used_number ?>)</span>
								</label>

								<div class="fieldContainer">
									<input type="text" class="text" name="new_number" id="new_number"/>
								</div>

								<div class="clear"></div>
							</li>		
						</ul>
						<div class="clear"></div>
					</div>
				</div>

				<?= backend_ajax_button('Save', 'index_onSave') ?>
				<?= backend_button('Cancel', url('/system/settings')) ?>
				<div class="clear"></div>
			</form>
		</div>
	<? else: ?>
		<p><a href="<?= url('/system/settings') ?>">Return to the settings page</a></p>
	<? endif ?>
<? Phpr_View::endBlock() ?>